<template slot-scope="scope">
  <div class="box">
    <div class="dialog-box">
      <el-dialog
        :title="topName == '1' ? '手机号更换' : '电子邮箱更换'"
        :visible.sync="dialogSwitch"
        :before-close="handleClose"
        :modal-append-to-body="true"
        :lock-scroll="false"
      >
        <div class="dialog-p">
          <div class="left">
            <p >{{topName=='1'?'当前手机号：':'当前邮箱：'}}</p>
            <p>验证码：</p>
            <p>{{topName=='1'?'新手机号：':'新邮箱：'}}</p>
          </div>
          <div class="right">
            <p>{{topName=='1'?'18237742511':'18237742511@163.com'}}</p>
            <p><el-input v-model="input" placeholder="请输入验证码"></el-input>
            <span>获取验证码</span>
            </p>
            <p><el-input v-model="input" :placeholder="topName=='1'?'请输入新手机号':'请输入新邮箱'"></el-input></p>
          </div>
         
        </div>

        <span slot="footer" class="dialog-footer">
          <el-button @click="handleClose">取 消</el-button>
          <el-button type="primary" @click="handleUnderstand">确 认</el-button>
        </span>
      </el-dialog>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    dialogSwitch: {},
    topName: {},
  },
  components: {},
  data() {
    return {
      radio: "1", // 单选
      value: "", // 搜索
      input:'',
    };
  },
  computed: {},
  created() {
    console.log(this.listarr);
  },
  methods: {
    handleClose() {
      this.$emit("handleClose", 2);
      //   this.dialogVisible = false;
    },
    handleUnderstand() {
      this.$emit("handleUnderstand", 2);
    },
  },
};
</script>

<style scoped lang="less">
.dialog-p {
  width: 100%;
  display: flex;
  margin-top: -10px;
  font-size: 15px;
  color: #101010;
  .left{
    width: 100px;
    p{
      height: 30px;
      line-height: 30px;
      margin-top: 10px;
    }
  }
  .right{
    width:60%;
    p{
      height: 30px;
      line-height: 30px;
      margin-top: 10px;
    }
    p:nth-child(2){
      position: relative;
      span{
        position: absolute;
        right: 20px;
        color: #3291F8;
        font-weight: 400;
      }
    }
  }
  /deep/.el-input__inner {
    height: 30px !important;
    font-size: 14px;
  }
}
::v-deep .el-dialog__wrapper {
  position: absolute !important;
  min-width: 200px;
}
::v-deep .v-modal {
  position: absolute !important;
  min-width: 200px;
}
/deep/.el-dialog {
  border-radius: 10px;
  background-color: FFFFFF;
  min-width: 400px;
  max-width: 600px;
  font-weight: 600;
}
</style>
